package com.kgc.onlineLife.service;

import com.kgc.onlineLife.bean.Order;

import java.util.List;

/**
 * @program: com.kgc.onlineLife.service
 * @author: HarryXzy
 * @create: 2022-04-18 22:28
 * @description: 订单service
 **/
public interface OrderService {

    /**
    * @author: HarryXzy
    * @date: 2022/4/18 10:39 下午
    * @return:
    * @description: 根据用户id查询订单
    **/
    List<Order> myOrders(Integer id);

    /**
    * @author: HarryXzy
    * @date: 2022/4/18 10:43 下午
    * @return:
    * @description: 给每个订单的订单项设置属性值，orderitems、total等
    **/
    void fill(List<Order> os);

    boolean add(Order order);

    void update(Order order);

    int selectOrderByCode(String code);

    boolean insert(Order order);
    /*
     * @author : wangzhongyu
     * @date   : 2022/4/21
     * @param  :
     * @return :
     * @description :
     */
    List<Order> queryOrder();
    List<Order> queryOrder(String code);

    Boolean modOrder(String pname);


}
